export const constantRoute = [
  {
    //登录
    path: '/login',
    component: () => import('@/views/login/index.vue'),
    name: 'login',
    meta: {
      title: '登录', //菜单标题
      hidden: true, //代表路由标题在菜单中是否隐藏  true:隐藏 false:不隐藏
      icon: 'Promotion' //菜单文字左侧的图标,支持element-plus全部图标
    }
  },
  {
    //登录
    path: '/mycollect',
    component: () => import('@/views/mycollect/index.vue'),
    name: 'mycollect',
    meta: {
      title: '我的收藏', //菜单标题
      hidden: true, //代表路由标题在菜单中是否隐藏  true:隐藏 false:不隐藏
      icon: 'Promotion' //菜单文字左侧的图标,支持element-plus全部图标
    }
  },
  {
    //写攻略
    path: '/wstrategy',
    component: () => import('@/views/wstrategy/index.vue'),
    name: 'wstrategy',
    meta: {
      title: '', //菜单标题
      hidden: true, //代表路由标题在菜单中是否隐藏  true:隐藏 false:不隐藏
      icon: '' //菜单文字左侧的图标,支持element-plus全部图标
    }
  },
  {
    //查攻略
    path: '/astrategy',
    component: () => import('@/views/astrategy/index.vue'),
    name: 'astrategy',
    meta: {
      title: '', //菜单标题
      hidden: true, //代表路由标题在菜单中是否隐藏  true:隐藏 false:不隐藏
      icon: '' //菜单文字左侧的图标,支持element-plus全部图标
    }
  },
  {
    path: '/',
    name: 'layout',
    component: () => import('../layout/index.vue'),
    redirect: '/home',
    meta: {
      title: '',
      hidden: false,
      icon: ''
    },
    children: [
      {
        path: '/home',
        component: () => import('@/views/home/index.vue'),
        meta: {
          title: '首页',
          hidden: false,
          icon: 'HomeFilled'
        }
      }
    ]
  },

  {
    //travel
    path: '/weather',
    component: () => import('@/views/weather/index.vue'),
    name: 'weather',
    meta: {
      title: '全国气象', //菜单标题
      hidden: false, //代表路由标题在菜单中是否隐藏  true:隐藏 false:不隐藏
      icon: 'PieChart' //菜单文字左侧的图标,支持element-plus全部图标
    }
  },
  {
    //travel
    path: '/overview',
    component: () => import('@/views/overview/index.vue'),
    name: 'overview',
    meta: {
      title: '旅游概况', //菜单标题
      hidden: false, //代表路由标题在菜单中是否隐藏  true:隐藏 false:不隐藏
      icon: 'Promotion' //菜单文字左侧的图标,支持element-plus全部图标
    }
  },

  {
    //travel
    path: '/travel',
    component: () => import('../layout/index.vue'),
    name: 'travel',
    meta: {
      title: '旅游工具', //菜单标题
      hidden: true, //代表路由标题在菜单中是否隐藏  true:隐藏 false:不隐藏
      icon: 'Promotion' //菜单文字左侧的图标,支持element-plus全部图标
    },
    children: [
      {
        //景区分布
        path: '/travel/distribution',
        component: () => import('@/views/distribution/index.vue'),
        name: 'distribution',
        meta: {
          title: '景区分布', //菜单标题
          icon: 'Crop', //菜单文字左侧的图标,支持element-plus全部图标
          hidden: false
        }
      },
      {
        //景区分布
        path: '/travel/plan',
        component: () => import('@/views/plan/index.vue'),
        name: 'plan',
        meta: {
          title: "路线规划", //菜单标题
          icon: 'LocationInformation', //菜单文字左侧的图标,支持element-plus全部图标
          hidden: false
        }
      }
    ]
  },
  {
    path: '/hot',
    name: 'hot',
    component: () => import('../layout/index.vue'),
    redirect: '/hot/travelhot',
    meta: {
      title: '', //菜单标题
      hidden: false, //代表路由标题在菜单中是否隐藏  true:隐藏 false:不隐藏
      icon: 'Promotion' //菜单文字左侧的图标,支持element-plus全部图标
    },
    children: [
      {
        path: '/hot/travelhot',
        component: () => import('@/views/hot/index.vue'),
        meta: {
          title: '热门景区',
          hidden: false,
          icon: 'Star'
        }
      }
    ]
  },
  {
    path: '/strategy',
    name: 'strategy',
    component: () => import('../layout/index.vue'),
    redirect: '/strategy/travelstrategy',
    meta: {
      title: '旅游攻略', //菜单标题
      hidden: false, //代表路由标题在菜单中是否隐藏  true:隐藏 false:不隐藏
      icon: 'Promotion' //菜单文字左侧的图标,支持element-plus全部图标
    },
    children: [
      {
        path: '/strategy/travelstrategy',
        component: () => import('@/views/strategy/index.vue'),
        meta: {
          title: '旅游攻略',
          hidden: false,
          icon: 'Share'
        }
      }
    ]
  },
  {
    path: '/wxai/travelwxai',
    component: () => import('@/views/wxai/index.vue'),
    meta: {
      title: '途游AI',
      hidden: false,
      icon: 'Guide'
    }
  },

  {
    path: '/new',
    name: 'new',
    component: () => import('../layout/index.vue'),
    redirect: '/new/travelnew',
    meta: {
      title: '', //菜单标题
      hidden: false, //代表路由标题在菜单中是否隐藏  true:隐藏 false:不隐藏
      icon: 'Promotion' //菜单文字左侧的图标,支持element-plus全部图标
    },
    children: [
      {
        path: '/new/travelnew',
        component: () => import('@/views/news/index.vue'),
        meta: {
          title: '旅游快讯',
          hidden: false,
          icon: 'ChatLineSquare'
        }
      }
    ]
  }
]
